// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// 让前端的代码更加方便查看
// eslint帮助我们矫正语法规范
import Vue from 'vue'
import App from './App'
import router from './router'
// 导入全局组件
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 定义全局组件
Vue.config.productionTip = false
Vue.use(ElementUI)
/* eslint-disable no-new */
/**
 * 根组件
 * app是根组件的局部组件
 * 根组件的布局就是整个app
 */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
